import request from '@/utils/request'

// 查询公寓属性列表
export function listApartmentattribute(query) {
  return request({
    url: '/apartmentattribute/apartmentattribute/list',
    method: 'get',
    params: query
  })
}

// 查询公寓属性详细
export function getApartmentattribute(id) {
  return request({
    url: '/apartmentattribute/apartmentattribute/' + id,
    method: 'get'
  })
}

// 新增公寓属性
export function addApartmentattribute(data) {
  return request({
    url: '/apartmentattribute/apartmentattribute',
    method: 'post',
    data: data
  })
}

// 修改公寓属性
export function updateApartmentattribute(data) {
  return request({
    url: '/apartmentattribute/apartmentattribute',
    method: 'put',
    data: data
  })
}

// 删除公寓属性
export function delApartmentattribute(id) {
  return request({
    url: '/apartmentattribute/apartmentattribute/' + id,
    method: 'delete'
  })
}
